200
|
Can I change the visual effect, appearance for the anchor, hyperlink elements, in HTML captions, after the user clicks it
![](images/exgridq200.png)
With Exgrid1
.set_FormatAnchor(False,"<b><u><fgcolor=880000> </fgcolor></u></b>")
.Columns.Add("Column")
With .Items
.set_CellValueFormat(.AddItem("Just an <a1>anchor</a> element ..."),0,exontrol.EXGRIDLib.ValueFormatEnum.exHTML)
End With
With .Items
.set_CellValueFormat(.AddItem("Just another <a2>anchor</a> element ..."),0,exontrol.EXGRIDLib.ValueFormatEnum.exHTML)
End With
.Items.AddItem("next item")
End With
|
199
|
Can I change the visual effect, appearance for the anchor, hyperlink elements, in HTML captions
![](images/exgridq199.png)
With Exgrid1
.set_FormatAnchor(True,"<b><u><fgcolor=FF0000> </fgcolor></u></b>")
.Columns.Add("Column")
With .Items
.set_CellValueFormat(.AddItem("Just an <a1>anchor</a> element ..."),0,exontrol.EXGRIDLib.ValueFormatEnum.exHTML)
End With
With .Items
.set_CellValueFormat(.AddItem("Just another <a2>anchor</a> element ..."),0,exontrol.EXGRIDLib.ValueFormatEnum.exHTML)
End With
End With
|
198
|
Can I change the font for the tooltip
![](images/exgridq198.png)
With Exgrid1
.ToolTipDelay = 1
.ToolTipWidth = 364
.Columns.Add("tootip").ToolTip = "<br><font Tahoma;14>this</font> is a tooltip assigned to a column<br>"
End With
|
197
|
Can I change the font for the tooltip
![](images/exgridq197.png)
With Exgrid1
.ToolTipDelay = 1
With .ToolTipFont
.Name = "Tahoma"
.Size = 14
End With
.ToolTipWidth = 364
.Columns.Add("tootip").ToolTip = "this is a tooltip assigned to a column"
End With
|
196
|
Can I change the order of the buttons in the scroll bar
![](images/exgridq196.png)
With Exgrid1
.set_ScrollOrderParts(exontrol.EXGRIDLib.ScrollBarEnum.exHScroll,"t,l,r")
.set_ScrollOrderParts(exontrol.EXGRIDLib.ScrollBarEnum.exVScroll,"t,l,r")
.ScrollBars = exontrol.EXGRIDLib.ScrollBarsEnum.exDisableBoth
End With
|
195
|
The thumb size seems to be very small. Can I make it bigger
![](images/exgridq195.png)
With Exgrid1
.ColumnAutoResize = False
.Columns.Add("C1").Width = 256
.Columns.Add("C2").Width = 256
.Columns.Add("C3").Width = 256
.set_ScrollThumbSize(exontrol.EXGRIDLib.ScrollBarEnum.exHScroll,64)
End With
|
194
|
How can I display my text on the scroll bar, using a different font
![](images/exgridq194.png)
With Exgrid1
.set_ScrollPartCaption(exontrol.EXGRIDLib.ScrollBarEnum.exHScroll,exontrol.EXGRIDLib.ScrollPartEnum.exThumbPart,"This is <s><font Tahoma;12> just </font></s> text")
.ColumnAutoResize = False
.ScrollHeight = 20
.Columns.Add("C1").Width = 256
.Columns.Add("C2").Width = 256
.Columns.Add("C3").Width = 256
End With
|
193
|
How can I display my text on the scroll bar, using a different font
![](images/exgridq193.png)
With Exgrid1
.set_ScrollPartCaption(exontrol.EXGRIDLib.ScrollBarEnum.exHScroll,exontrol.EXGRIDLib.ScrollPartEnum.exThumbPart,"This is just a text")
.get_ScrollFont(exontrol.EXGRIDLib.ScrollBarEnum.exHScroll).Size = 12
.ColumnAutoResize = False
.ScrollHeight = 20
.Columns.Add("C1").Width = 256
.Columns.Add("C2").Width = 256
.Columns.Add("C3").Width = 256
End With
|
192
|
How can I display my text on the scroll bar
![](images/exgridq192.png)
With Exgrid1
.set_ScrollPartCaption(exontrol.EXGRIDLib.ScrollBarEnum.exHScroll,exontrol.EXGRIDLib.ScrollPartEnum.exThumbPart,"this is just a text")
.ColumnAutoResize = False
.Columns.Add("C1").Width = 256
.Columns.Add("C2").Width = 256
.Columns.Add("C3").Width = 256
End With
|
191
|
How do I enlarge or change the size of the control's scrollbars
![](images/exgridq191.png)
With Exgrid1
.ScrollHeight = 18
.ScrollWidth = 18
.ScrollButtonWidth = 18
.ScrollButtonHeight = 18
.ScrollBars = exontrol.EXGRIDLib.ScrollBarsEnum.exDisableBoth
End With
|
190
|
How do I assign a tooltip to a scrollbar
![](images/exgridq190.png)
With Exgrid1
.set_ScrollToolTip(exontrol.EXGRIDLib.ScrollBarEnum.exHScroll,"This is a tooltip being shown when you click and drag the thumb in the horizontal scroll bar")
.ColumnAutoResize = False
.Columns.Add("C1").Width = 256
.Columns.Add("C2").Width = 256
.Columns.Add("C3").Width = 256
End With
|
189
|
How do I assign an icon to the button in the scrollbar
![](images/exgridq189.png)
With Exgrid1
.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" & _
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" & _
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" & _
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=")
.set_ScrollPartVisible(exontrol.EXGRIDLib.ScrollBarEnum.exHScroll,exontrol.EXGRIDLib.ScrollPartEnum.exLeftB1Part,True)
.set_ScrollPartCaption(exontrol.EXGRIDLib.ScrollBarEnum.exHScroll,exontrol.EXGRIDLib.ScrollPartEnum.exLeftB1Part,"<img>1</img>")
.ScrollHeight = 18
.ScrollButtonWidth = 18
.ScrollBars = exontrol.EXGRIDLib.ScrollBarsEnum.exDisableNoHorizontal
End With
|
188
|
I need to add a button in the scroll bar. Is this possible
![](images/exgridq188.png)
With Exgrid1
.set_ScrollPartVisible(exontrol.EXGRIDLib.ScrollBarEnum.exHScroll,exontrol.EXGRIDLib.ScrollPartEnum.exLeftB1Part,True)
.set_ScrollPartCaption(exontrol.EXGRIDLib.ScrollBarEnum.exHScroll,exontrol.EXGRIDLib.ScrollPartEnum.exLeftB1Part,"1")
.ScrollBars = exontrol.EXGRIDLib.ScrollBarsEnum.exDisableNoHorizontal
End With
|
187
|
Can I display an additional buttons in the scroll bar
![](images/exgridq187.png)
With Exgrid1
.set_ScrollPartVisible(exontrol.EXGRIDLib.ScrollBarEnum.exHScroll,exontrol.EXGRIDLib.ScrollPartEnum.exLeftB1Part,True)
.set_ScrollPartVisible(exontrol.EXGRIDLib.ScrollBarEnum.exHScroll,exontrol.EXGRIDLib.ScrollPartEnum.exLeftB2Part,True)
.set_ScrollPartVisible(exontrol.EXGRIDLib.ScrollBarEnum.exHScroll,exontrol.EXGRIDLib.ScrollPartEnum.exRightB6Part,True)
.set_ScrollPartVisible(exontrol.EXGRIDLib.ScrollBarEnum.exHScroll,exontrol.EXGRIDLib.ScrollPartEnum.exRightB5Part,True)
.ScrollBars = exontrol.EXGRIDLib.ScrollBarsEnum.exDisableNoHorizontal
End With
|
186
|
Can I display the picture aligned to the right, while the text aligned to the left
![](images/exgridq186.png)
Dim s
With Exgrid1
.DefaultItemHeight = 48
.Columns.Add("C1")
With .Items
s = .get_SplitCell(.AddItem("Text"),0)
.set_CellPicture(Nothing,s,Exgrid1.ExecuteTemplate("loadpicture(`c:\exontrol\images\zipdisk.gif`)"))
.set_CellHAlignment(Nothing,s,exontrol.EXGRIDLib.AlignmentEnum.RightAlignment)
End With
End With
|
185
|
How can I display a custom size picture to a cell or item
![](images/exgridq185.png)
With Exgrid1
.DefaultItemHeight = 48
.Columns.Add("C1")
With .Items
.set_CellPicture(.AddItem("Text"),0,Exgrid1.ExecuteTemplate("loadpicture(`c:\exontrol\images\zipdisk.gif`)"))
End With
End With
|
184
|
How can I display a multiple pictures to a cell or item
![](images/exgridq184.png)
With Exgrid1
.DefaultItemHeight = 48
.set_HTMLPicture("pic1","c:\exontrol\images\zipdisk.gif")
.set_HTMLPicture("pic2","c:\exontrol\images\auction.gif")
.Columns.Add("C1")
With .Items
.set_CellValueFormat(.AddItem("<img>pic1</img> Text <img>pic2</img> another text ..."),0,exontrol.EXGRIDLib.ValueFormatEnum.exHTML)
End With
End With
|
183
|
How do I change the column's foreground color for numbers between an interval - Range
![](images/exgridq183.png)
With Exgrid1
With .ConditionalFormats.Add("%0 >= 2 and %0 <= 10")
.Bold = True
.ForeColor = Color.FromArgb(255,0,0)
.ApplyTo = &H1
End With
.Columns.Add("N1")
.Columns.Add("N2")
With .Items
.set_CellValue(.AddItem(1),1,2)
End With
With .Items
.set_CellValue(.AddItem(3),1,3)
End With
With .Items
.set_CellValue(.AddItem(10),1,11)
End With
With .Items
.set_CellValue(.AddItem(13),1,31)
End With
.SearchColumnIndex = 1
End With
|
182
|
How do I change the item's foreground color for numbers between an interval - Range
![](images/exgridq182.png)
With Exgrid1
.ConditionalFormats.Add("%0 >= 2 and %0 <= 10").ForeColor = Color.FromArgb(255,0,0)
.Columns.Add("Numbers")
.Items.AddItem(1)
.Items.AddItem(2)
.Items.AddItem(10)
.Items.AddItem(20)
End With
|
181
|
How do I change the item's background color for numbers less than a value
![](images/exgridq181.png)
With Exgrid1
.ConditionalFormats.Add("%0 < 10").BackColor = Color.FromArgb(255,0,0)
.Columns.Add("Numbers")
.Items.AddItem(1)
.Items.AddItem(2)
.Items.AddItem(10)
.Items.AddItem(20)
End With
|
180
|
How do I underline the numbers greater than a value
![](images/exgridq180.png)
With Exgrid1
.ConditionalFormats.Add("%0 >= 10").Underline = True
.Columns.Add("Numbers")
.Items.AddItem(1)
.Items.AddItem(2)
.Items.AddItem(10)
.Items.AddItem(20)
End With
|
179
|
How do I highlight in italic the numbers greater than a value
![](images/exgridq179.png)
With Exgrid1
.ConditionalFormats.Add("%0 >= 10").StrikeOut = True
.Columns.Add("Numbers")
.Items.AddItem(1)
.Items.AddItem(2)
.Items.AddItem(10)
.Items.AddItem(20)
End With
|
178
|
How do I highlight in italic the numbers greater than a value
![](images/exgridq178.png)
With Exgrid1
.ConditionalFormats.Add("%0 >= 10").Italic = True
.Columns.Add("Numbers")
.Items.AddItem(1)
.Items.AddItem(2)
.Items.AddItem(10)
.Items.AddItem(20)
End With
|
177
|
How do I highlight in bold the numbers greater than a value
![](images/exgridq177.png)
With Exgrid1
.ConditionalFormats.Add("%0 >= 10").Bold = True
.Columns.Add("Numbers")
.Items.AddItem(1)
.Items.AddItem(2)
.Items.AddItem(10)
.Items.AddItem(20)
End With
|
176
|
Can I use your EBN files to change the visual appearance for +/- expand - collapse buttons
![](images/exgridq176.png)
Dim h
With Exgrid1
.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
.VisualAppearance.Add(2,"c:\exontrol\images\pushed.ebn")
.LinesAtRoot = exontrol.EXGRIDLib.LinesAtRootEnum.exGroupLinesAtRoot
.HasButtons = exontrol.EXGRIDLib.ExpandButtonEnum.exCustom
.set_HasButtonsCustom(False,16777216)
.set_HasButtonsCustom(True,33554432)
.Columns.Add("Column")
With .Items
h = .AddItem("Root 1")
.InsertItem(h,Nothing,"Child 1")
.InsertItem(h,Nothing,"Child 2")
.set_ExpandItem(h,True)
h = .AddItem("Root 2")
.InsertItem(h,Nothing,"Child")
End With
End With
|
175
|
Can I use your EBN files to change the visual appearance for radio buttons
![](images/exgridq175.png)
With Exgrid1
.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
.VisualAppearance.Add(2,"c:\exontrol\images\pushed.ebn")
.set_RadioImage(False,16777216)
.set_RadioImage(True,33554432)
.Columns.Add("Radio").set_Def(exontrol.EXGRIDLib.DefColumnEnum.exCellHasRadioButton,True)
With .Items
.AddItem("Radio 1")
.set_CellState(.AddItem("Radio 2"),0,1)
.AddItem("Radio 3")
End With
End With
|
174
|
Can I use your EBN files to change the visual appearance for checkbox cells
![](images/exgridq174.png)
With Exgrid1
.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
.VisualAppearance.Add(2,"c:\exontrol\images\pushed.ebn")
.set_CheckImage(exontrol.EXGRIDLib.CheckStateEnum.Unchecked,16777216)
.set_CheckImage(exontrol.EXGRIDLib.CheckStateEnum.Checked,33554432)
.Columns.Add("Check").set_Def(exontrol.EXGRIDLib.DefColumnEnum.exCellHasCheckBox,True)
With .Items
.AddItem("Check 1")
.set_CellState(.AddItem("Check 2"),0,1)
End With
End With
|
173
|
How do I change the visual aspect for thumb parts in the scroll bars, using EBN
![](images/exgridq173.png)
With Exgrid1
.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
.VisualAppearance.Add(2,"c:\exontrol\images\pushed.ebn")
.VisualAppearance.Add(3,"c:\exontrol\images\hot.ebn")
.set_Background32(exontrol.EXGRIDLib.BackgroundPartEnum.exHSThumb,&H1000000)
.set_Background32(exontrol.EXGRIDLib.BackgroundPartEnum.exHSThumbP,&H2000000)
.set_Background32(exontrol.EXGRIDLib.BackgroundPartEnum.exHSThumbH,&H3000000)
.set_Background32(exontrol.EXGRIDLib.BackgroundPartEnum.exVSThumb,&H1000000)
.set_Background32(exontrol.EXGRIDLib.BackgroundPartEnum.exVSThumbP,&H2000000)
.set_Background32(exontrol.EXGRIDLib.BackgroundPartEnum.exVSThumbH,&H3000000)
.ScrollBars = exontrol.EXGRIDLib.ScrollBarsEnum.exVScrollEmptySpace Or exontrol.EXGRIDLib.ScrollBarsEnum.exHScrollEmptySpace Or exontrol.EXGRIDLib.ScrollBarsEnum.exVScrollOnThumbRelease Or exontrol.EXGRIDLib.ScrollBarsEnum.exHScrollOnThumbRelease Or exontrol.EXGRIDLib.ScrollBarsEnum.exDisableBoth
.ScrollBySingleLine = True
.Columns.Add("Def")
With .Items
.AddItem(1)
.AddItem(2)
.AddItem(3)
End With
End With
|
172
|
How do I change the visual aspect only for the thumb in the scroll bar, using EBN
![](images/exgridq172.png)
With Exgrid1
.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
.VisualAppearance.Add(2,"c:\exontrol\images\pushed.ebn")
.VisualAppearance.Add(3,"c:\exontrol\images\hot.ebn")
.set_Background32(exontrol.EXGRIDLib.BackgroundPartEnum.exHSThumb,&H1000000)
.set_Background32(exontrol.EXGRIDLib.BackgroundPartEnum.exHSThumbP,&H2000000)
.set_Background32(exontrol.EXGRIDLib.BackgroundPartEnum.exHSThumbH,&H3000000)
.ScrollBars = exontrol.EXGRIDLib.ScrollBarsEnum.exVScrollEmptySpace Or exontrol.EXGRIDLib.ScrollBarsEnum.exHScrollEmptySpace Or exontrol.EXGRIDLib.ScrollBarsEnum.exVScrollOnThumbRelease Or exontrol.EXGRIDLib.ScrollBarsEnum.exHScrollOnThumbRelease Or exontrol.EXGRIDLib.ScrollBarsEnum.exDisableBoth
.ScrollBySingleLine = True
.Columns.Add("Def")
With .Items
.AddItem(1)
.AddItem(2)
.AddItem(3)
End With
End With
|
171
|
I've seen that you can change the visual appearance for the scroll bar. How can I do that
![](images/exgridq171.png)
With Exgrid1
.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
.VisualAppearance.Add(2,"c:\exontrol\images\pushed.ebn")
.VisualAppearance.Add(3,"c:\exontrol\images\hot.ebn")
.set_Background32(exontrol.EXGRIDLib.BackgroundPartEnum.exSBtn,&H1000000)
.set_Background32(exontrol.EXGRIDLib.BackgroundPartEnum.exSBtnP,&H2000000)
.set_Background32(exontrol.EXGRIDLib.BackgroundPartEnum.exSBtnH,&H3000000)
.set_Background(exontrol.EXGRIDLib.BackgroundPartEnum.exHSBack,Color.FromArgb(240,240,240))
.set_Background(exontrol.EXGRIDLib.BackgroundPartEnum.exVSBack,Color.FromArgb(240,240,240))
.set_Background(exontrol.EXGRIDLib.BackgroundPartEnum.exScrollSizeGrip,Color.FromArgb(240,240,240))
.Columns.Add("S").Width = 32
.Columns.Add("Level 1").LevelKey = 1
.Columns.Add("Level 2").LevelKey = 1
.Columns.Add("Level 3").LevelKey = 1
.Columns.Add("E1").Width = 32
.Columns.Add("E2").Width = 32
.Columns.Add("E3").Width = 32
.Columns.Add("E4").Width = 32
.ColumnAutoResize = False
.ScrollBars = exontrol.EXGRIDLib.ScrollBarsEnum.exDisableBoth
End With
|
170
|
Is there any option to highlight the column from the cursor - point
![](images/exgridq170.png)
With Exgrid1
.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
.set_Background32(exontrol.EXGRIDLib.BackgroundPartEnum.exCursorHoverColumn,&H1000000)
.Columns.Add("S").Width = 32
.Columns.Add("Level 1").LevelKey = 1
.Columns.Add("Level 2").LevelKey = 1
.Columns.Add("Level 3").LevelKey = 1
.Columns.Add("E1").Width = 32
.Columns.Add("E2").Width = 32
.Columns.Add("E3").Width = 32
.Columns.Add("E4").Width = 32
End With
|
169
|
How do I change the visual aspect of selected item in the drop down filter window, using your EBN technology
![](images/exgridq169.png)
With Exgrid1
.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
.set_Background32(exontrol.EXGRIDLib.BackgroundPartEnum.exSelBackColorFilter,&H1000000)
.set_Background(exontrol.EXGRIDLib.BackgroundPartEnum.exSelForeColorFilter,Color.FromArgb(255,20,20))
.Columns.Add("Filter").DisplayFilterButton = True
End With
|
168
|
How do I change the visual aspect of the drop down calendar window, that shows up if I click the drop down filter button, using EBN
![](images/exgridq168.png)
With Exgrid1
.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
.VisualAppearance.Add(2,"c:\exontrol\images\pushed.ebn")
.set_Background32(exontrol.EXGRIDLib.BackgroundPartEnum.exDateHeader,&H1000000)
.set_Background32(exontrol.EXGRIDLib.BackgroundPartEnum.exDateTodayUp,&H1000000)
.set_Background32(exontrol.EXGRIDLib.BackgroundPartEnum.exDateTodayDown,&H2000000)
.set_Background32(exontrol.EXGRIDLib.BackgroundPartEnum.exDateScrollThumb,&H1000000)
.set_Background(exontrol.EXGRIDLib.BackgroundPartEnum.exDateScrollRange,Color.FromArgb(230,230,230))
.set_Background(exontrol.EXGRIDLib.BackgroundPartEnum.exDateSeparatorBar,Color.FromArgb(230,230,230))
.set_Background32(exontrol.EXGRIDLib.BackgroundPartEnum.exDateSelect,&H1000000)
With .Columns.Add("Date")
.FilterType = exontrol.EXGRIDLib.FilterTypeEnum.exDate
.DisplayFilterButton = True
.DisplayFilterDate = True
End With
End With
|
167
|
How do I change the visual aspect of the close button in the filter bar, using EBN
![](images/exgridq167.png)
With Exgrid1
.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
.set_Background32(exontrol.EXGRIDLib.BackgroundPartEnum.exFooterFilterBarButton,&H1000000)
.Columns.Add("Filter").FilterType = exontrol.EXGRIDLib.FilterTypeEnum.exBlanks
.ApplyFilter()
End With
|
166
|
How do I change the visual aspect of buttons in the cell, using EBN
![](images/exgridq166.png)
With Exgrid1
.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
.VisualAppearance.Add(2,"c:\exontrol\images\pushed.ebn")
.set_Background32(exontrol.EXGRIDLib.BackgroundPartEnum.exCellButtonUp,&H1000000)
.set_Background32(exontrol.EXGRIDLib.BackgroundPartEnum.exCellButtonDown,&H2000000)
.SelForeColor = Color.FromArgb(0,0,0)
.ShowFocusRect = False
.Columns.Add("Column 1").set_Def(exontrol.EXGRIDLib.DefColumnEnum.exCellHasButton,True)
.Items.AddItem("Button 1")
.Items.AddItem("Button 2")
.Columns.Add("Column 2")
End With
|
165
|
How do I change the visual aspect of the drop down filter button, using EBN
![](images/exgridq165.png)
With Exgrid1
.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
.set_Background32(exontrol.EXGRIDLib.BackgroundPartEnum.exHeaderFilterBarButton,&H1000000)
.Columns.Add("Filter").DisplayFilterButton = True
End With
|
164
|
Is there any function to get the control's data in your x-script format / template
![](images/exgridq164.png)
With Exgrid1
.Columns.Add("Column")
.Items.AddItem(Exgrid1.get_ToTemplate())
End With
|
163
|
How do I enable resizing the columns at runtime
![](images/exgridq163.png)
With Exgrid1
.ColumnsAllowSizing = True
.MarkSearchColumn = False
.HeaderVisible = False
.Columns.Add("Column 1")
.Columns.Add("Column 2")
.DrawGridLines = exontrol.EXGRIDLib.GridLinesEnum.exVLines
With .Items
.set_CellValue(.AddItem("Item 1"),1,"Sub Item 1")
End With
With .Items
.set_CellValue(.AddItem("Item 2"),1,"Sub Item 2")
End With
End With
|
162
|
How can I select the second inner column when spliting the cells
![](images/exgridq162.png)
With Exgrid1
.SelectColumnInner = 1
.FullRowSelect = exontrol.EXGRIDLib.CellSelectEnum.exColumnSel
.DrawGridLines = exontrol.EXGRIDLib.GridLinesEnum.exAllLines
.Columns.Add("Column")
With .Items
.set_CellValue(Nothing,.get_SplitCell(.AddItem("Split Cell 1.1"),0),"Split Cell 2.1")
.set_CellValue(Nothing,.get_SplitCell(.AddItem("Split Cell 1.2"),0),"Split Cell 2.2")
.set_SelectItem(.FirstVisibleItem,True)
End With
End With
|
161
|
How can I sort by multiple columns
![](images/exgridq161.png)
With Exgrid1
.SingleSort = False
.Columns.Add("C1").SortOrder = exontrol.EXGRIDLib.SortOrderEnum.SortAscending
.Columns.Add("C2").SortOrder = exontrol.EXGRIDLib.SortOrderEnum.SortDescending
.Columns.Add("C3").SortOrder = exontrol.EXGRIDLib.SortOrderEnum.SortAscending
End With
|
160
|
How can I add several columns to control's sort bar
![](images/exgridq160.png)
With Exgrid1
.SortBarVisible = True
.SortBarColumnWidth = 48
.Columns.Add("C1").SortOrder = exontrol.EXGRIDLib.SortOrderEnum.SortAscending
.Columns.Add("C2").SortOrder = exontrol.EXGRIDLib.SortOrderEnum.SortDescending
End With
|
159
|
How can I change the width of the columns being displayed in the sort bar
![](images/exgridq159.png)
With Exgrid1
.SortBarVisible = True
.SortBarColumnWidth = 48
.Columns.Add("C1").SortOrder = exontrol.EXGRIDLib.SortOrderEnum.SortAscending
.Columns.Add("C2").SortOrder = exontrol.EXGRIDLib.SortOrderEnum.SortDescending
End With
|
158
|
How can I change the height of the sort bar's
![](images/exgridq158.png)
With Exgrid1
.SortBarVisible = True
.SortBarHeight = 48
End With
|
157
|
How can I change the sort bar's foreground color
![](images/exgridq157.png)
With Exgrid1
.SortBarVisible = True
.ForeColorSortBar = Color.FromArgb(255,0,0)
End With
|
156
|
How can I change the visual appearance of the control's sort bar, using EBN files
![](images/exgridq156.png)
With Exgrid1
.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
.VisualAppearance.Add(2,"c:\exontrol\images\pushed.ebn")
.SortBarVisible = True
.BackColorSortBar32 = &H1000000
.BackColorSortBarCaption32 = &H2000000
.Appearance = exontrol.EXGRIDLib.AppearanceEnum.None2
End With
|
155
|
How can I change the sort bar's background color
![](images/exgridq155.png)
With Exgrid1
.SortBarVisible = True
.BackColorSortBar = Color.FromArgb(255,0,0)
.BackColorSortBarCaption = Color.FromArgb(128,0,0)
End With
|
154
|
How can I change the default caption being displayed in the control's sort bar
![](images/exgridq154.png)
With Exgrid1
.SortBarVisible = True
.SortBarCaption = "new caption"
End With
|
153
|
How can I show the locked / fixed items on the bottom side of the control
![](images/exgridq153.png)
With Exgrid1
.ShowLockedItems = True
.Columns.Add("Column")
With .Items
.set_LockedItemCount(exontrol.EXGRIDLib.VAlignmentEnum.exMiddle,2)
.set_CellValue(.get_LockedItem(exontrol.EXGRIDLib.VAlignmentEnum.exMiddle,0),0,"locked item 1")
.set_CellValue(.get_LockedItem(exontrol.EXGRIDLib.VAlignmentEnum.exMiddle,1),0,"locked item 2")
.AddItem("un-locked item")
End With
End With
|
152
|
How can I show the locked / fixed items
![](images/exgridq152.png)
With Exgrid1
.ShowLockedItems = True
.Columns.Add("Column")
With .Items
.set_LockedItemCount(exontrol.EXGRIDLib.VAlignmentEnum.exTop,2)
.set_CellValue(.get_LockedItem(exontrol.EXGRIDLib.VAlignmentEnum.exTop,0),0,"locked item 1")
.set_CellValue(.get_LockedItem(exontrol.EXGRIDLib.VAlignmentEnum.exTop,1),0,"locked item 2")
.AddItem("un-locked item")
End With
End With
|
151
|
How can I hide the locked / fixed items
With Exgrid1
.ShowLockedItems = False
.Columns.Add("Column")
With .Items
.set_LockedItemCount(exontrol.EXGRIDLib.VAlignmentEnum.exTop,1)
.set_CellValue(.get_LockedItem(exontrol.EXGRIDLib.VAlignmentEnum.exTop,0),0,"locked item")
.AddItem("un-locked item")
End With
End With
|
150
|
How can I show the control's sort bar
![](images/exgridq150.png)
With Exgrid1
.SortBarVisible = True
End With
|
149
|
How can I stretch a picture on the control's header, when multiple levels are displayed, so it is not tiled
![](images/exgridq149.png)
With Exgrid1
.PictureLevelHeader = Exgrid1.ExecuteTemplate("loadpicture(`c:\exontrol\images\colorize.gif`)")
.PictureDisplayLevelHeader = exontrol.EXGRIDLib.PictureDisplayEnum.Stretch
.Columns.Add("S").Width = 32
.Columns.Add("Level 1").LevelKey = 1
.Columns.Add("Level 2").LevelKey = 1
.Columns.Add("Level 3").LevelKey = 1
.Columns.Add("E1").Width = 32
.Columns.Add("E2").Width = 32
.Columns.Add("E3").Width = 32
.Columns.Add("E4").Width = 32
End With
|
148
|
How can I display a picture on the control's header, when multiple levels are displayed, so it is not tiled
![](images/exgridq148.png)
With Exgrid1
.PictureLevelHeader = Exgrid1.ExecuteTemplate("loadpicture(`c:\exontrol\images\colorize.gif`)")
.PictureDisplayLevelHeader = exontrol.EXGRIDLib.PictureDisplayEnum.MiddleRight
.Columns.Add("S").Width = 32
.Columns.Add("Level 1").LevelKey = 1
.Columns.Add("Level 2").LevelKey = 1
.Columns.Add("Level 3").LevelKey = 1
.Columns.Add("E").Width = 32
End With
|
147
|
How can I display a picture on the control's header, when multiple levels are displayed
![](images/exgridq147.png)
With Exgrid1
.PictureLevelHeader = Exgrid1.ExecuteTemplate("loadpicture(`c:\exontrol\images\zipdisk.gif`)")
.Columns.Add("S").Width = 32
.Columns.Add("Level 1").LevelKey = 1
.Columns.Add("Level 2").LevelKey = 1
.Columns.Add("Level 3").LevelKey = 1
End With
|
146
|
How can I change the header's background color, when multiple levels are displayed
![](images/exgridq146.png)
With Exgrid1
.BackColorLevelHeader = Color.FromArgb(250,0,0)
.Columns.Add("S").Width = 32
.Columns.Add("Level 1").LevelKey = 1
.Columns.Add("Level 2").LevelKey = 1
.Columns.Add("Level 3").LevelKey = 1
End With
|
145
|
Can I programmatically scroll the control
With Exgrid1
.Columns.Add("Column")
.Items.AddItem(0)
.Items.AddItem(1)
.Items.AddItem(2)
.Items.AddItem(3)
.PutItems(.GetItems(0))
.PutItems(.GetItems(0))
.set_ScrollPos(True,1)
End With
|
144
|
How do I disable expanding or collapsing an item when user presses the arrow keys
Dim h
With Exgrid1
.ExpandOnKeys = False
.LinesAtRoot = exontrol.EXGRIDLib.LinesAtRootEnum.exLinesAtRoot
.Columns.Add("Column 1")
With .Items
h = .AddItem("Root")
.InsertItem(h,Nothing,"Child 1")
.InsertItem(h,Nothing,"Child 2")
.set_ExpandItem(h,True)
End With
End With
|
143
|
How do I expand automatically the items while user types characters to searching for something ( incremental searching )
![](images/exgridq143.png)
With Exgrid1
.ExpandOnSearch = True
.LinesAtRoot = exontrol.EXGRIDLib.LinesAtRootEnum.exLinesAtRoot
.AutoSearch = True
.Columns.Add("Column").AutoSearch = exontrol.EXGRIDLib.AutoSearchEnum.exContains
With .Items
.InsertItem(.InsertItem(.AddItem("text"),Nothing,"some text"),Nothing,"another text")
.InsertItem(.InsertItem(.AddItem("text"),Nothing,"some text"),Nothing,"another text")
End With
End With
|
142
|
Can I programmatically scroll the control
With Exgrid1
.Columns.Add("Column")
.Items.AddItem(0)
.Items.AddItem(1)
.Items.AddItem(2)
.Items.AddItem(3)
.PutItems(.GetItems(0))
.PutItems(.GetItems(0))
.Scroll(exontrol.EXGRIDLib.ScrollEnum.exScrollDown)
End With
|
141
|
Do you have some function to load data from a safe array
With Exgrid1
.Columns.Add("Column")
.Items.AddItem(0)
.PutItems(.GetItems(0))
End With
|
140
|
Do you have some function to retrieve all items to a safe array
With Exgrid1
.Columns.Add("Column")
.Items.AddItem(0)
.PutItems(.GetItems(0))
.Items.AddItem(1)
.PutItems(.GetItems(0))
.Items.AddItem(2)
.PutItems(.GetItems(0))
.Items.AddItem(3)
End With
|
139
|
How can still display the selected items when the control loses the focus
![](images/exgridq139.png)
With Exgrid1
.HideSelection = False
.Columns.Add("Column")
With .Items
.AddItem("Item 3")
.AddItem("Item 1")
.set_SelectItem(.AddItem("Item 2"),True)
End With
End With
|
138
|
How can I hide a column
![](images/exgridq138.png)
With Exgrid1
.Columns.Add("Hidden").Visible = False
.Columns.Add("2")
.Columns.Add("3")
.Columns.Add("4")
.Columns.Add("5")
End With
|
137
|
How can I ensure that a column is visible and fits the control's client area
![](images/exgridq137.png)
With Exgrid1
.ColumnAutoResize = False
.Columns.Add("1").Width = 128
.Columns.Add("2").Width = 128
.Columns.Add("3").Width = 128
.Columns.Add("4").Width = 128
.Columns.Add("5").Width = 128
.EnsureVisibleColumn("5")
End With
|
136
|
I've seen that the width of the tooltip is variable. Can I make it larger
![](images/exgridq136.png)
With Exgrid1
.ToolTipWidth = 328
.Columns.Add("tootip").ToolTip = "this is a tooltip that should be very very very very very very very long"
End With
|
135
|
How do I disable showing the tooltip for all control
With Exgrid1
.ToolTipDelay = 0
.Columns.Add("tootip").ToolTip = "this is a tooltip assigned to a column"
End With
|
134
|
How do I let the tooltip being displayed longer
With Exgrid1
.ToolTipPopDelay = 10000
.Columns.Add("tootip").ToolTip = "this is a tooltip assigned to a column"
End With
|
133
|
How do I show the tooltip quicker
![](images/exgridq133.png)
With Exgrid1
.ToolTipDelay = 1
.Columns.Add("tootip").ToolTip = "this is a tooltip assigned to a column"
End With
|
132
|
How do I change the caption being displayed in the control's filter bar
![](images/exgridq132.png)
With Exgrid1
.FilterBarCaption = "your filter caption"
With .Columns.Add("Column")
.DisplayFilterButton = True
.FilterType = exontrol.EXGRIDLib.FilterTypeEnum.exBlanks
End With
.ApplyFilter()
End With
|
131
|
How do I disable expanding or collapsing an item when user double clicks it
![](images/exgridq131.png)
Dim h
With Exgrid1
.ExpandOnDblClick = False
.LinesAtRoot = exontrol.EXGRIDLib.LinesAtRootEnum.exLinesAtRoot
.Indent = 13
.Columns.Add("Column 1")
With .Items
h = .AddItem("Root")
.InsertItem(h,Nothing,"Child 1")
.InsertItem(h,Nothing,"Child 2")
.set_ExpandItem(h,True)
End With
End With
|
130
|
How do I search case sensitive, using your incremental search feature
![](images/exgridq130.png)
With Exgrid1
.AutoSearch = True
.ASCIILower = ""
With .Columns
.Add("exStartWith").AutoSearch = exontrol.EXGRIDLib.AutoSearchEnum.exStartWith
.Add("exContains").AutoSearch = exontrol.EXGRIDLib.AutoSearchEnum.exContains
End With
With .Items
.set_CellValue(.AddItem("text"),1,"another text")
End With
With .Items
.set_CellValue(.AddItem("text"),1,"another text")
End With
End With
|
129
|
How do I disable the control
With Exgrid1
.Enabled = False
End With
|
128
|
How do I enable the incremental search feature within a column
![](images/exgridq128.png)
With Exgrid1
.AutoSearch = True
With .Columns
.Add("exStartWith").AutoSearch = exontrol.EXGRIDLib.AutoSearchEnum.exStartWith
.Add("exContains").AutoSearch = exontrol.EXGRIDLib.AutoSearchEnum.exContains
End With
With .Items
.set_CellValue(.AddItem("text"),1,"another text")
End With
With .Items
.set_CellValue(.AddItem("text"),1,"another text")
End With
End With
|
127
|
How do I call your x-script language
![](images/exgridq127.png)
With Exgrid1
With .ExecuteTemplate("Columns.Add(`Column`)")
.HeaderStrikeOut = True
.HeaderBold = True
End With
End With
|
126
|
How do I call your x-script language
![](images/exgridq126.png)
With Exgrid1
.Template = "Columns.Add(`Column`).HTMLCaption = `<b>C</b>olumn`"
End With
|
125
|
How do I show alternate rows in different background color
![](images/exgridq125.png)
With Exgrid1
.BackColorAlternate = Color.FromArgb(240,240,240)
.Columns.Add("Column")
With .Items
.AddItem("Item 1")
.AddItem("Item 2")
.AddItem("Item 3")
.AddItem("Item 4")
.AddItem("Item 5")
End With
End With
|
124
|
How do I enlarge the drop down filter window
![](images/exgridq124.png)
With Exgrid1
.FilterBarDropDownHeight = "-320"
With .Columns.Add("Column")
.DisplayFilterButton = True
.FilterBarDropDownWidth = "-320"
End With
.Items.AddItem("Item 1")
.Items.AddItem("Item 2")
End With
|
123
|
How do I filter programatically the control
![](images/exgridq123.png)
With Exgrid1
With .Columns.Add("Column")
.DisplayFilterButton = True
.FilterType = exontrol.EXGRIDLib.FilterTypeEnum.exPattern
.Filter = "Item*"
End With
.Items.AddItem("Item 1")
.Items.AddItem("")
.Items.AddItem("Item 2")
.ApplyFilter()
End With
|
122
|
How do I change the font of the control's filterbar
![](images/exgridq122.png)
With Exgrid1
.FilterBarFont.Size = 20
With .Columns.Add("Column")
.DisplayFilterButton = True
.FilterType = exontrol.EXGRIDLib.FilterTypeEnum.exBlanks
End With
.ApplyFilter()
End With
|
121
|
Can I apply an EBN skin to the control's filter bar so I can change its visual appearance
![](images/exgridq121.png)
With Exgrid1
.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
.FilterBarBackColor32 = &H1000000
With .Columns.Add("Column")
.DisplayFilterButton = True
.FilterType = exontrol.EXGRIDLib.FilterTypeEnum.exBlanks
End With
.ApplyFilter()
End With
|
120
|
How do I change the background color of the control's filterbar
![](images/exgridq120.png)
With Exgrid1
.FilterBarBackColor = Color.FromArgb(240,240,240)
With .Columns.Add("Column")
.DisplayFilterButton = True
.FilterType = exontrol.EXGRIDLib.FilterTypeEnum.exBlanks
End With
.ApplyFilter()
End With
|
119
|
How do I change the foreground color of the control's filterbar
![](images/exgridq119.png)
With Exgrid1
.FilterBarForeColor = Color.FromArgb(255,0,0)
With .Columns.Add("Column")
.DisplayFilterButton = True
.FilterType = exontrol.EXGRIDLib.FilterTypeEnum.exBlanks
End With
.ApplyFilter()
End With
|
118
|
How do I change the height of the control's filterbar
![](images/exgridq118.png)
With Exgrid1
.FilterBarHeight = 32
With .Columns.Add("Column")
.DisplayFilterButton = True
.FilterType = exontrol.EXGRIDLib.FilterTypeEnum.exBlanks
End With
.ApplyFilter()
End With
|
117
|
How do I change the header's foreground color
![](images/exgridq117.png)
With Exgrid1
.ForeColorHeader = Color.FromArgb(255,0,0)
.Columns.Add("Column 1")
.Columns.Add("Column 2")
.Items.AddItem("Item 1")
End With
|
116
|
I have a picture on the control's background, the question is how do I draw selection as semi-transparent
![](images/exgridq116.png)
With Exgrid1
.Picture = Exgrid1.ExecuteTemplate("loadpicture(`c:\exontrol\images\zipdisk.gif`)")
.SelBackMode = exontrol.EXGRIDLib.BackModeEnum.exTransparent
.Columns.Add("Column")
.Items.AddItem("Item 1")
.Items.AddItem("Item 2")
End With
|
115
|
It seems that the control uses the TAB key, is there any way to avoid that
With Exgrid1
.UseTabKey = False
End With
|
114
|
I have FullRowSelect property on False, how do I force the user to select cells only in a specified column
![](images/exgridq114.png)
With Exgrid1
.SelectColumnIndex = 1
.FullRowSelect = exontrol.EXGRIDLib.CellSelectEnum.exColumnSel
.Columns.Add("Column 1")
.Columns.Add("Column 2")
With .Items
.set_CellValue(.AddItem("Item 1"),1,"SubItem 1")
End With
End With
|
113
|
How do I assign a database to your control, using ADO, ADOR or ADODB objects
![](images/exgridq113.png)
Dim rs
With Exgrid1
.ColumnAutoResize = False
.ContinueColumnScroll = False
rs = New ADODB.Recordset()
With rs
.Open("Orders","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Program Files\Exontrol\ExGrid\Sample\Access\misc.accdb",3,3)
End With
.DataSource = rs
End With
|
112
|
How do I change the visual appearance effect for the selected item, using EBN
![](images/exgridq112.png)
With Exgrid1
.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
.SelBackColor32 = &H1000000
.SelForeColor = Color.FromArgb(0,0,0)
.ShowFocusRect = False
.Columns.Add("Column")
.Items.AddItem(0)
.Items.AddItem(1)
End With
|
111
|
How do I change the colors for the selected item
![](images/exgridq111.png)
With Exgrid1
.SelBackColor = Color.FromArgb(0,0,0)
.Columns.Add("Column")
.Items.AddItem(0)
.Items.AddItem(1)
End With
|
110
|
How do I get ride of the rectangle arround focused item
With Exgrid1
.ShowFocusRect = False
.Columns.Add("Column")
.Items.AddItem(0)
.Items.AddItem(1)
End With
|
109
|
How can I change the control's font
With Exgrid1
.Font.Name = "Tahoma"
.Columns.Add("Column")
End With
|
108
|
I can't scroll to the end of the data. What can I do
With Exgrid1
.ScrollBySingleLine = True
.DrawGridLines = exontrol.EXGRIDLib.GridLinesEnum.exRowLines
.Columns.Add("Column")
With .Items
.set_ItemHeight(.AddItem(0),13)
End With
.PutItems(.GetItems(0))
With .Items
.set_ItemHeight(.AddItem(1),26)
End With
.PutItems(.GetItems(0))
With .Items
.set_ItemHeight(.AddItem(2),36)
End With
.PutItems(.GetItems(0))
With .Items
.set_ItemHeight(.AddItem(3),48)
End With
.PutItems(.GetItems(0))
End With
|
107
|
How do I specify the column where the tree lines / hierarchy are shown
![](images/exgridq107.png)
Dim h
With Exgrid1
.LinesAtRoot = exontrol.EXGRIDLib.LinesAtRootEnum.exGroupLinesAtRoot
.TreeColumnIndex = 1
.Columns.Add("Column 1")
.Columns.Add("Column 2")
With .Items
h = .AddItem("Root 1.1")
.set_CellValue(h,1,"Root 1.2")
.set_CellValue(.InsertItem(h,Nothing,"Child 1.1"),1,"Child 1.2")
.set_CellValue(.InsertItem(h,Nothing,"Child 2.1"),1,"Child 2.2")
.set_ExpandItem(h,True)
h = .AddItem("Root 2.1")
.set_CellValue(h,1,"Root 2.2")
.set_CellValue(.InsertItem(h,Nothing,"Child 1.1"),1,"Child 1.2")
End With
End With
|
106
|
How do I specify the indentation of the child items relative to their parents
![](images/exgridq106.png)
Dim h
With Exgrid1
.LinesAtRoot = exontrol.EXGRIDLib.LinesAtRootEnum.exGroupLinesAtRoot
.Indent = 11
.Columns.Add("Column")
With .Items
h = .AddItem("Root 1")
.InsertItem(h,Nothing,"Child 1")
.InsertItem(h,Nothing,"Child 2")
.set_ExpandItem(h,True)
h = .AddItem("Root 2")
.InsertItem(h,Nothing,"Child")
End With
End With
|
105
|
Is there any option to select an item using the right button of the mouse (rclick)
![](images/exgridq105.png)
With Exgrid1
.RClickSelect = True
.Columns.Add("Column")
.Items.AddItem("Item 1")
.Items.AddItem("Item 2")
End With
|
104
|
I have FullRowSelect property on False, how do I select a column
With Exgrid1
.SelectColumnIndex = 1
.FullRowSelect = exontrol.EXGRIDLib.CellSelectEnum.exColumnSel
End With
|
103
|
How can I scroll columns one by one, not pixel by pixel
With Exgrid1
.ContinueColumnScroll = False
.ColumnAutoResize = False
.Columns.Add("1").Width = 128
.Columns.Add("2").Width = 128
.Columns.Add("3").Width = 128
.Columns.Add("4").Width = 128
.Columns.Add("5").Width = 128
End With
|
102
|
How can I enable multiple items selection
![](images/exgridq102.png)
With Exgrid1
.SingleSel = False
.Columns.Add("Column")
.Items.AddItem(0)
.Items.AddItem(1)
.Items.AddItem(2)
End With
|
101
|
How can I programmatically change the column where incremental searching is performed
![](images/exgridq101.png)
With Exgrid1
.Columns.Add("Column 1")
.Columns.Add("Column 2")
With .Items
.set_CellValue(.AddItem("Item 1"),1,"SubItem 1")
End With
.SearchColumnIndex = 1
End With
|